<template>
  <a-card :bordered="false">
    <a-tabs type="card" default-active-key="1" @change="callback">
      <a-tab-pane :tab="'需求' + (index + 1)" v-for="(item, index) in reportDemandListBOS" :key="item.id">
        <tabDetail :achievementId="item.id" :reportId="reportId"></tabDetail>
      </a-tab-pane>
    </a-tabs>
  </a-card>
</template>

<script>
import tabDetail from './modules/tabDetail.vue'
import { deleteAction, getAction, postAction, downFile, getFileAccessHttpUrl } from '@/api/manage'
export default {
  name: 'Error',
  components: { tabDetail },
  data() {
    return {
      formItemLayout: {
        labelCol: {
          xs: { span: 24 },
          sm: { span: 4 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 20 },
        },
      },
      formItemLayoutWithOutLabel: {
        wrapperCol: {
          xs: { span: 24, offset: 0 },
          sm: { span: 20, offset: 4 },
        },
      },
      dynamicValidateForm: {
        domains: [],
      },
      columns: [
        {
          title: '申请号',
          dataIndex: 'age',
          key: 'age',
          width: 80,
        },
        {
          title: '专利名称',
          dataIndex: 'address',
          key: 'address 1',
          ellipsis: true,
        },
        {
          title: '相似度',
          dataIndex: 'age',
          key: 'age',
          width: 80,
        },
        {
          title: '操作',
          dataIndex: 'age',
          key: 'age',
          width: 80,
        },
      ],
      reportDemandListBOS: [],
      url: {
        detail: '/report5/details',
      },
      reportId: '',
    }
  },
  mounted() {
    this.reportId = this.$route.query.reportId
    this.getDetail()
  },
  methods: {
    getDetail() {
      let id = this.reportId
      var that = this
      getAction(that.url.detail + '/' + id).then((res) => {
        if (res.success) {
          this.reportDemandListBOS = res.result.reportDemandListBOS
        }
      })
    },

    callback() {},
  },
}
</script>

<style scoped>
</style>